package xalan.xml;

import org.w3c.dom.Document;

public abstract class DeserializationTemplate {
	public void deserialize(String fileName) {
		Document document;
		try {
			document = XMLUtils.parse(fileName);
			deserializeFromXML(document);
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

	protected abstract void deserializeFromXML(Document document);
}
